package com.megan.modules.system.liteflow;

import com.alibaba.fastjson.JSONObject;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@LiteflowComponent("b")
public class Bcmp extends NodeComponent {

    @Override
    public void process() {
        Object requestData = this.getRequestData();
        log.info("执行参数 -> {}", JSONObject.toJSONString(requestData));
        log.info("执行B逻辑");
    }

    /**
     * 是否进入该节点，可以用于业务参数的预先判断
     */
    @Override
    public boolean isAccess() {
        return super.isAccess();
    }

}
